#ifndef BLOCK_H_
#define BLOCK_H_

#include "../physicalDisk/PhysicalDisk.h"
#include <string.h>
#include <stdlib.h>
#include <iostream>
#include <stdio.h>
#include <sstream>



using namespace std;

class DataBlock {
private:
	int number;
	int offset;
	vector<char> _data;
	int blockSize;

public:
	DataBlock(int blockNumber, int blockOffset, int blockSize);
	virtual ~DataBlock();
	int getNumber ();
	void setData (unsigned char* newData);

	void getData (unsigned char buf[]);
	int getOffset();
	void writeToPhysicalDisk(int blockOffset, unsigned char* data);
	void readFromPhysicalDisk(int blockOffset, unsigned char* data);
};

#endif /* BLOCK_H_ */
